<?php

namespace App\Transformers\Clbum;

use League\Fractal\TransformerAbstract;
use App\Models\Clbum\ClbumExt;

class ClbumExtTransformer extends TransformerAbstract
{

    public function transform(ClbumExt $model)
    {
        return [
            'id'         => (int) $model->id,
            'clbum_id'   => $model->clbum_id,
            'system_code_type'   => $model->system_code_type,
            'system_code_value'   => $model->system_code_value,
            'system_code_value_name'   => $model->system_code_value_name,
            'value'   => $model->value,
            'created_at' => $model->created_at->format('Y-m-d H:i:s'),
            'updated_at' => $model->updated_at->format('Y-m-d H:i:s')
        ];
    }
}
